from redis import StrictRedis, ConnectionPool

pool = ConnectionPool(host='localhost', port=6379, db=0, password='')
redis = StrictRedis(connection_pool=pool)
redis.set('123', 'Bob')
print(redis.get('name'))
print(redis.get('123'))